using System;
using digit.Core;
using System.Data;

namespace SMS.ServiceManager
{
    public class SportTeamCupInfo
    {
        #region CONSTRUCTORS
        public SportTeamCupInfo()
        {
            this.m_relateID = Util.NULL_INT;
            this.m_cupID = Util.NULL_INT;
            this.m_teamID = Util.NULL_INT;
        }

        public SportTeamCupInfo(int relateId, int cupID, int teamId)
        {
            this.m_relateID = relateId;
            this.m_cupID = cupID;
            this.m_teamID = teamId;
        }

        public SportTeamCupInfo(DataRow dRow)
        {
            this.m_relateID = (int)Util.ReplaceDBNullTo(dRow["relateID"], Util.NULL_INT);
            this.m_cupID = (int)Util.ReplaceDBNullTo(dRow["cupID"], Util.NULL_INT);
            this.m_teamID = (int)Util.ReplaceDBNullTo(dRow["teamID"], Util.NULL_INT);
        }
        #endregion

        #region ATTRIBUTES
        private int m_relateID;
        private int m_cupID;
        private int m_teamID;
        #endregion

        #region PROPERTIES
        public int RelateID
        {
            get
            {
                return this.m_relateID;
            }
            set
            {
                this.m_relateID = value;
            }
        }

        public int TeamID
        {
            get
            {
                return this.m_teamID;
            }
            set
            {
                this.m_teamID = value;
            }
        }

        public int CupID
        {
            get
            {
                return this.m_cupID;
            }
            set
            {
                this.m_cupID = value;
            }
        }

        #endregion

    }
}